<?php
/**
 * 
 * @author	ronnie  (comdeng@gmail.com)
 * @link		http://fillphp.com/
 * @date		2014-5-3 下午3:47:16
 * @file		Route.php
 * @description 
 */
namespace fillphp\hook;

class Route
{
	private static $rules = array();
	
	/**
	 * 增加规则
	 * @param string $orig
	 * @param string $dest
	 */
	static function addRule($orig, $dest) 
	{
		$orig = rtrim(strtolower($orig), '/');
		$orig = rtrim(strtolower($orig), '/');
		self::$rules[$orig] = $dest;
	}
	
	/**
	 * 增加多条规则
	 * @param array $rules
	 */
	static function addRules(array $rules)
	{
		foreach($rules as $key=>$value) {
			self::addRule($key, $dest);
		}
	}
	
	/**
	 * 
	 * @param string $url
	 * @param string $host
	 */
	static function route($url, $host = '')
	{
		return $url;
	}
}
